package com.itheima.tanhuan.pojo.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "visitors")
public class Visitors implements Serializable {
    ObjectId id;
    Long date;
    Long userId;
    Long visitorUserId;
    Integer score;
    String from;
    String visitDate;

}
